package com.ctshk.rpc.scenic.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * 校验是否重复
 */
@Data
@ApiModel(value = "CheckDuplicateReq对象", description = "校验是否重复报名Req")
public class CheckDuplicateReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @Valid
    @NotEmpty(message = "类型不能为空")
    @Min(1)
    @Max(2)
    @ApiModelProperty(value = "类型:1.校验身份证, 2.校验电话")
    private String type;

    @ApiModelProperty(value = "身份证号")
    private String idNumber;

    @ApiModelProperty(value = "联络电话")
    private String phone;

}
